package com.design.pattern.state;

public class SoldOutState implements State {

    GumballMachine gumballMachine;

    public SoldOutState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    public void insertQuarter() {
        System.out.println("糖果已经卖完了，不要再投钱了");
    }

    public void ejectQuarter() {
        System.out.println("你还没有投钱，退什么钱啊");
    }

    public void turnCrank() {
        System.out.println("这个机器已经卖完了，别再摇动摇杆了");
    }

    public void dispense() {
        System.out.println("这个机器已经卖完了，没有糖果了");
    }
}